<?php
    class Admin_AdminController extends Core_AdminController
    {
        public function __construct($valid = true)
        {
            parent::__construct();
            if ($valid) {
                $this->valid('admin');
            }
        }
        
        public function indexAction()
        {
            $this->view->setTemplate('admin/index');
            $this->view->render();
        }
        
        public function logoutAction()
        {
            $this->signout('admin');
            sfredirect('/admin/login');
        }
    }